From 925f5786c741fdfb9d7b906eae5c62db783a14aa Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Fri, 7 Nov 2008 17:00:39 +0000 Subject: [PATCH] xenpm: Fix an error path. Signed-off-by: Jinsong Liu --- tools/misc/xenpm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/misc/xenpm.c b/tools/misc/xenpm.c index 618aa27a84..ace72b4216 100644 --- a/tools/misc/xenpm.c +++ b/tools/misc/xenpm.c @@ -170,7 +170,7 @@ int main(int argc, char **argv) if ( !pxstat->pt ) { fprintf(stderr, "failed to malloc for P-states table\n"); - free(pxstat->pt); + free(pxstat->trans_pt); break; } -- 2.30.2